package HP.yrr.p1;


public class Test {
    public static void main(String[] args) {
        Pet dog = new Dog("小狗", 3, 100, 100);
        Master master = new Master();
        System.out.println("当前小狗的信息:");
        System.out.println(dog);
        master.feed(dog);
        System.out.println("当前小狗的信息:");
        System.out.println(dog);
        master.playWithPet(dog);
        System.out.println("当前小狗的信息:");
        System.out.println(dog);

/*        EatAndPlay c = new Dog();
        c.petEat();
        c.petPlay();*/

    }
}
